package com.kfm.jdbc.day0327;


import java.io.Closeable;
import java.io.IOException;

public class Student extends Person implements Closeable, IPerson {

    private String name;

    String age;

    protected String gender;

    public String address;

    public Student(){}

    protected Student(int a){
        System.out.println("Student(int)" + a);
    }

    protected Student(Integer a){}

    Student(String a){}

    private Student(double a){
        System.out.println("private Student(double a)");
    }

    public class InnerClass{}

    static class StaticInnerCLass{}

    private void methodA(){}

    void methodB(){}

    protected void methodC(){}

    public void methodD(){}

    @Override
    public void say() {
        System.out.println("say()");
    }

    public void show(String name){
        System.out.println("show() " + name);
    }

    public static void staticMethod(){
        System.out.println("Student::staticMethod");
    }

    @Override
    public void close() throws IOException {

    }
}

class Person {

    private String sName;

    String sAge;

    protected String sGender;


    public String sAddress;

    private void sMethodA(){}

    void sMethodB(){}

    protected void sMethodC(){}

    public void sMethodD(){}
}

interface IPerson {

    void say();
}
